. {
    margin: 0;
}
body {
    display: flex;
    justify-content: center;
}
body>div {
    width: 1200px;
}
.top {
    background-image: url("../img/banner.jpg");
    height: 250px;
    /*width: 1200px;*/
    background-size: 100% 100%;
    color: white;
}
/*----------------广告文本--------------------*/
.text {
    padding: 30px 0 10px;
    font-size: 30px;
    margin-top: 50px;
    margin-left: 600px;
}
/*----------------导航--------------------*/
.nav {
    background-color: rgb(47,45,50);
    height: 50px;
    margin-top: 30px;
    flex-direction: column-reverse;
}
.nav>div {
    /*width: 1000px;*/
    /*border: 1px solid rebeccapurple;*/
    display: flex;
    align-items: center;
    justify-content: center;

}
.nav>div>div {
    /*margin: 20px;*/
    /*height: 50px;*/
    padding: 0 20px;
    line-height: 50px;
}
.nav>div>div:nth-child(1) {
    text-align: center;
    width: 100px;
}
.nav>div>div:hover {
    background-color: white;
    color: rgb(47,45,50);
}